const app = getApp()
Page({
  data: {
    PageCur: 'home'
  },
  NavChange(e) {
    if (e.currentTarget.dataset.cur === 'ask') {
      wx.navigateToMiniProgram({
        appId: 'wx9a540b5057985f00',
        path: '',
        extraData: {},
        envVersion: 'release',
        success(res) {
          // 打开成功
        }
      });
      return;
    }
    this.setData({
      PageCur: e.currentTarget.dataset.cur
    })
  },
  // 分享事件
  onShareAppMessage() {
    return {
      // 10A2D4
      title: app.globalData.hospital.name,
      imageUrl: '/images/share.jpg',
      path: '/pages/index/index'
    }
  }
})